<html>
<head><meta charset="utf-8"><title>perf of canonicalization in rustc · wg-traits · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/144729-wg-traits/index.html">wg-traits</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/144729-wg-traits/topic/perf.20of.20canonicalization.20in.20rustc.html">perf of canonicalization in rustc</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="191954416"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/144729-wg-traits/topic/perf%20of%20canonicalization%20in%20rustc/near/191954416" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/144729-wg-traits/topic/perf.20of.20canonicalization.20in.20rustc.html#191954416">(Mar 26 2020 at 21:59)</a>:</h4>
<p>Hey <span class="user-mention" data-user-id="119009">@eddyb</span> since I know you're around :P -- do you have any idea how much of rustc execution time is spent doing canonicalization? I had some ideas for how to make it faster and I've always wondered if they're worth investigating.</p>



<a name="191954524"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/144729-wg-traits/topic/perf%20of%20canonicalization%20in%20rustc/near/191954524" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> eddyb <a href="https://rust-lang.github.io/zulip_archive/stream/144729-wg-traits/topic/perf.20of.20canonicalization.20in.20rustc.html#191954524">(Mar 26 2020 at 22:00)</a>:</h4>
<p>not yet, since it doesn't show up distinctly on profiles yet, most of the time I find is in the actual select/eval etc. parts of the trait system, at least for the stuff I've looked at</p>



<a name="191954571"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/144729-wg-traits/topic/perf%20of%20canonicalization%20in%20rustc/near/191954571" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> nikomatsakis <a href="https://rust-lang.github.io/zulip_archive/stream/144729-wg-traits/topic/perf.20of.20canonicalization.20in.20rustc.html#191954571">(Mar 26 2020 at 22:01)</a>:</h4>
<p>OK</p>



<a name="191954584"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/144729-wg-traits/topic/perf%20of%20canonicalization%20in%20rustc/near/191954584" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> eddyb <a href="https://rust-lang.github.io/zulip_archive/stream/144729-wg-traits/topic/perf.20of.20canonicalization.20in.20rustc.html#191954584">(Mar 26 2020 at 22:01)</a>:</h4>
<p>but it's cheap to add a simple profiling entry for the actual canonicalization process, so I might as well for my upcoming trait system profiling adventures</p>



<a name="191966903"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/144729-wg-traits/topic/perf%20of%20canonicalization%20in%20rustc/near/191966903" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jane Lusby <a href="https://rust-lang.github.io/zulip_archive/stream/144729-wg-traits/topic/perf.20of.20canonicalization.20in.20rustc.html#191966903">(Mar 27 2020 at 00:49)</a>:</h4>
<p>oo adventures <span aria-label="eyes" class="emoji emoji-1f440" role="img" title="eyes">:eyes:</span></p>



<a name="191966912"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/144729-wg-traits/topic/perf%20of%20canonicalization%20in%20rustc/near/191966912" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jane Lusby <a href="https://rust-lang.github.io/zulip_archive/stream/144729-wg-traits/topic/perf.20of.20canonicalization.20in.20rustc.html#191966912">(Mar 27 2020 at 00:50)</a>:</h4>
<p>also, the eyes emoji in zulip is a crime</p>



<a name="191969589"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/144729-wg-traits/topic/perf%20of%20canonicalization%20in%20rustc/near/191969589" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> eddyb <a href="https://rust-lang.github.io/zulip_archive/stream/144729-wg-traits/topic/perf.20of.20canonicalization.20in.20rustc.html#191969589">(Mar 27 2020 at 01:44)</a>:</h4>
<p>the only crime I see here is using the eyes emoji :P</p>



<a name="191969593"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/144729-wg-traits/topic/perf%20of%20canonicalization%20in%20rustc/near/191969593" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> eddyb <a href="https://rust-lang.github.io/zulip_archive/stream/144729-wg-traits/topic/perf.20of.20canonicalization.20in.20rustc.html#191969593">(Mar 27 2020 at 01:44)</a>:</h4>
<p>(for more details tho see the stuff I posted in the sprint thread)</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>